import request from '@/utils/request.js'

// 获取代理商详情 {{host}}/member/Member_company/material
/**
 * @param name 昵称
 * @param avatar 头像ID
*/
export const GetAgentDetailsApi = (params) => {
	return request('/member/Member_company/material', params)
}

// 获取我的钱包数据 {{host}}/member/Member_company/getStatistics
/**
 * @param type shop_deposit
 * @param start_time 头像ID
 * @param over_time
 * @param status
*/
export const GetAgentWallectApi = (params) => {
	return request('/member/Member_company/getStatistics', params)
}

// 获取钱包记录 {{host}}/member/personal/wallet_info
/**
 * @param type company_deposit
 * @param status 0==全部 1==收入 2==支出
*/
export const GetWallectLogApi = (params) => {
	return request('/member/personal/wallet_info', params)
}

// 提现 {{host}}/member/member/apply_cash 
export const TXApi = (params) => {
	return request('/member/member/apply_cash ', params)
}


// 提现设置>获取体现信息 {{host}}/member/personal/material_ti
export const GetTXInfoApi = (params) => {
	return request('/member/personal/material_ti', params)
}

// 提现设置>修改那个参数传那个参数 不修改要传 {{host}}/member/personal/changeInfoTi
/**
 * @param wx_name   微信真实姓名
 * @param wx_img    微信收款码
 * @param zfb_name  支付宝真实姓名
 * @param zfb_img   支付宝收款码
 * @param bank_name 银行卡 持卡人姓名
 * @param bank_code 银行卡号
 * @param bank_site 开户行
 * @param code      验证码
*/
export const SetTXInfoApi = (params) => {
	return request('/member/personal/changeInfoTi', params)
}

// 商户管理>获取商户管理统计 {{host}}/member/member_company/getShopStatistics
export const GetShopManageCountApi = (params) => {
	return request('/member/member_company/getShopStatistics', params)
}

// 商户管理>获取商户管理列表 {{host}}/member/member_company/getShopList
/**
 * @param status
 * @param longitude
 * @param latitude
*/
export const GetShopManageListApi = (params) => {
	return request('/member/member_company/getShopList', params)
}

// 商户管理>停业/营业 {{host}}/member/member_company/updateShop
/**
 * @param shop_id 店铺ID
 * @param active  1营业2停业
*/
export const SetShopStatusApi = (params) => {
	return request('/member/member_company/updateShop', params)
}

// 商户管理>获取店铺详情 {{host}}/shop/shop/detail
/**
 * @param shop_id 店铺ID
 * @param longitude
 * @param latitude
*/
export const GetShopDetailsApi = (params) => {
	return request('/shop/shop/detail', params)
}

// 骑手管理>骑手管理统计 {{host}}/member/member_company/getRiderStatistics
export const GetRiderManageCountApi = (params) => {
	return request('/member/member_company/getRiderStatistics', params)
}

// 骑手管理>获得骑手列表 {{host}}/member/member_company/getYRiderList
/**
 * @param status
*/
export const GetRiderManageListApi = (params) => {
	return request('/member/member_company/getYRiderList', params)
}

// 骑手管理>进制/允许接单 {{host}}/member/member_company/setIsOpen
/**
 * @param id
*/
export const SetRiderStatusApi = (params) => {
	return request('/member/member_company/setIsOpen', params)
}

// 商户邀请>获取商户邀请列表 {{host}}/member/member_company/getApplyShopList
/**
 * @param status  -1 全部 1=待审核 2=已驳回 3=已通过
*/
export const GetShopInviteListApi = (params) => {
	return request('/member/member_company/getApplyShopList', params)
}

// 商户邀请>获取商户详情 {{host}}/member/member_company/getApplyShop
/**
 * @param id
*/
export const GetShopInviteDetailsApi = (params) => {
	return request('/member/member_company/getApplyShop', params)
}

// 商户邀请>审核通过/审核驳回 {{host}}/member/member_company/checkShop
/**
 * @param id
 * @param status     1通过 2驳回
 * @param reject_msg 驳回原因
 * @param username   当status==1的时候必填表示后台登录账号 默认列表手机号
 * @param password   当status==1的时候必填表示后台登录密码 代理输入
*/
export const SetShopInviteStatusApi = (params) => {
	return request('/member/member_company/checkShop', params)
}

// 骑手邀请》获取骑手列表 {{host}}/member/member_company/getRiderList
/**
 * @param status -1 全部 1=待审核 2=已驳回 3=已通过
*/
export const GetRiderInviteListApi = (params) => {
	return request('/member/member_company/getRiderList', params)
}
// 骑手邀请》获取骑手详情 {{host}}/member/Member_company/getApplyRider
/**
 * @param id
*/
export const GetRiderInfoApi = (params) => {
	return request('/member/Member_company/getApplyRider', params)
}

// 骑手邀请》修改骑手状态 {{host}}/member/member_company/checkRider
/**
 * @param id
 * @param status 1=通过 2=驳回
 * @param reject_msg 驳回原因
*/
export const EditRiderInfoApi = (params) => {
	return request('/member/member_company/checkRider', params)
}

// 投诉列表 {{host}}/member/member_company/getComplaintList
export const GetComplaintListApi = (params) => {
	return request('/member/member_company/getComplaintList', params)
}

// 已处理 {{host}}/member/member_company/setComplaint
/**
 * @param id
*/
export const EditComplaintStatusApi = (params) => {
	return request('/member/member_company/setComplaint', params)
}